package Person.models;

import Person.Base.BaseRangeException;
import Person.Base.State;

public class Dog extends BaseClass {
    @Override
    public void setType(int type) throws BaseRangeException {
        if (type == 1) {
            this.Type = type;
        }else{
            throw new BaseRangeException(State.InputValueError);
        }
    }

    @Override
    public String getType() {
        return "狗";
    }
}
